
	<div id="submenu">
<?php echo anchor('setting/', lang('form_label_back'))?>
<br>
<?php echo anchor('type/new_type', lang('menuitem_add_new').' '.lang('general_type'))?>
	</div>
	
	
	<?php
		//print how much result we get
		echo $count.' '.lang('general_record_found');

			
	?>
	
	<?php if($count > 0) { ?>
	<table  id='myTable' name='myTable' class='tablesorter' border='0' cellspacing='1' cellpadding='0'>
		<thead><tr>
			<th> # </th>
			<th> <?php echo lang('form_label_description')?> </th>
			<th> <?php echo lang('menuitem_edit')?> </th>
			<th> <?php echo lang('menuitem_delete')?> </th>
		</tr>
		</thead>
		<tbody>
	<?php 
		$i = 0;
		foreach($result as $row){
			echo "<tr>";
			echo "<td>". ++$i ."</td>";
			echo "<td>".$row['description']."</td>";
			echo "<td>". anchor("type/new_type/".$row['id'] , lang('menuitem_edit'))."</td>";
			echo "<td>". anchor("type/type_delete/".$row['id'] , lang('menuitem_delete'))."</td>";
			echo "</tr>";
		}
	echo "</table>";
	} //end if
	?>
